package com.ama.dao;



import com.ama.pojo.Company;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CompanyDao extends BaseMapper<Company> {
	public List<Company> findAllCompanies();
	public List<Company> findCompaniesByParams(Map<String, String> map);
	public void saveCompany(Company Company);
	public Company findCompanyByName(String username);
	public Company findCompanyByNameAndPassword(@Param("username") String username, @Param("password") String password);
	public void updateCompany(Company company);
	public void updatePubTime(Company company);
	public void ZeroPubTime(Company company);
	public Company findCompanyById(long id);
}
